<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">

    <style>
        .form-control{margin-bottom: 8px;}
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .radio-inline {line-height: 5px;}
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id">
                    <input type="hidden" name="version" value="0">
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">微信公众号名称</label>
                            <div>
                                <input type="text" class="form-control" name="mpName" placeholder="请输入微信公众号名称">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">微信公众号id</label>
                            <div>
                                <input type="text" class="form-control" name="mpAppId" placeholder="请输入微信公众号id">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">微信公众号原始id</label>
                            <div>
                                <input type="text" class="form-control" name="mpOriginalId" placeholder="请输入微信公众号原始id">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">微信公众号类型</label>
                            <div>
                                <input type="text" class="form-control" name="mpType" placeholder="请输入微信公众号类型">
                            </div>
                        </div>
                        <div class="col-sm-8">
                            <label class="form-inline">微信公众号秘钥</label>
                            <div>
                                <input type="text" class="form-control" name="mpAppSecret" placeholder="请输入微信公众号秘钥">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">微信公众号token</label>
                            <div>
                                <input type="text" class="form-control" name="mpToken" placeholder="请输入微信公众号token">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">微信公众号ticket(js-sdk使用)</label>
                            <div>
                                <input type="text" class="form-control" name="mpTicket" placeholder="请输入微信公众号ticket(js-sdk使用)">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">微信公众号授权验证文件（可为空）</label>
                            <div>
                                <input type="text" class="form-control" name="mpValidateFile" placeholder="请输入微信公众号授权验证文件（可为空）">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">微信公众号权限域名(可为空)</label>
                            <div>
                                <input type="text" class="form-control" name="mpDomainName" placeholder="请输入微信公众号权限域名(可为空)">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">微信公众号同步回调地址</label>
                            <div>
                                <input type="text" class="form-control" name="mpRedirectUrl" placeholder="请输入微信公众号同步回调地址">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">微信公众号支付异步回调地址</label>
                            <div>
                                <input type="text" class="form-control" name="mpNotifyUrl" placeholder="请输入微信公众号支付异步回调地址">
                            </div>
                        </div>
                    </div>
                    <!--微信支付-->
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">微信支付商户号</label>
                            <div>
                                <input type="text" class="form-control" name="mchId" placeholder="请输入微信支付商户号">
                            </div>
                        </div>
                        <div class="col-sm-8">
                            <label class="form-inline">微信支付商户密匙</label>
                            <div>
                                <input type="text" class="form-control" name="mchKey" placeholder="请输入微信支付商户密匙">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">微信支付证书地址</label>
                            <div>
                                <input type="text" class="form-control" name="keyPath" placeholder="请输入微信支付证书地址">
                            </div>
                        </div>
                    </div>
                    <!--小程序-->
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">小程序名称</label>
                            <div>
                                <input type="text" class="form-control" name="miniappName" placeholder="请输入小程序名称">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">小程序appid</label>
                            <div>
                                <input type="text" class="form-control" name="miniappAppId" placeholder="请输入小程序appid">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">小程序原始id</label>
                            <div>
                                <input type="text" class="form-control" name="miniappOriginalId" placeholder="请输入小程序原始id">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">消息格式，XML或者JSON</label>
                            <div>
                                <input type="text" class="form-control" name="miniappMsgDataFormat" placeholder="请输入消息格式，XML或者JSON">
                            </div>
                        </div>
                        <div class="col-sm-8">
                            <label class="form-inline">小程序秘钥（与app_id 使用取得公众号token)</label>
                            <div>
                                <input type="text" class="form-control" name="miniappAppSecret" placeholder="请输入小程序秘钥（与app_id 使用取得公众号token)">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">小程序token</label>
                            <div>
                                <input type="text" class="form-control" name="miniappToken" placeholder="请输入小程序token">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">小程序的EncodingAESKey</label>
                            <div>
                                <input type="text" class="form-control" name="miniappAesKey" placeholder="请输入小程序的EncodingAESKey">
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-12 form-group">
                        <div class="col-sm-6 form-group" style="margin-top: 10px">
                            <label class="form-inline">微信公众号二维码图片<font style="color: red">尺寸：【】</font></label>
                            <input id="mpQrCode" type="hidden" name="mpQrCode">
                            <input type="hidden" id="oldMpQrCodeId" name="oldMpQrCodeId">
                            <div class="file-loading">
                                <input id="mpFileUpload" type="file" name="file">
                            </div>
                        </div>
                        <div class="col-sm-6 form-group" style="margin-top: 10px">
                            <label class="form-inline">小程序二维码图片<font style="color: red">尺寸：【】</font></label>
                            <input id="miniappQrCode" type="hidden" name="miniappQrCode">
                            <input type="hidden" id="oldMiniappQrCodeId" name="oldMiniappQrCodeId">
                            <div class="file-loading">
                                <input id="maFileUpload" type="file" name="file">
                            </div>
                        </div>
                    </div>

                </div>

                <div style="text-align: center">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)" >保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)" >保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.min.js"></script>
<script src="../../../../js/business-manage/organization/app/edit.js"></script>
</body>
</html>
